package cn.changeforyou.web.cloud.rpc.service.auth.enums;

import com.baomidou.mybatisplus.annotation.IEnum;

public enum OpenLevel implements IEnum<Integer> {
    open("开放", 1), halfOpen("半开放", 2), callControl("完全控制", 3),
    roleControl("角色控制", 4), orgControl("组织控制", 5),

    ;

    OpenLevel(String desc, int value) {
        this.value = value;
        this.desc = desc;
    }

    private int value;
    private String desc;

    @Override
    public Integer getValue() {
        return this.value;
    }
}
